package com.ruoyi.yf.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yf.mapper.YfExceptionMapper;
import com.ruoyi.yf.domain.YfException;
import com.ruoyi.yf.service.IYfExceptionService;
import com.ruoyi.common.core.text.Convert;

/**
 * 条形码异常记录Service业务层处理
 * 
 * @author XiaoYi...
 * @date 2020-03-17
 */
@Service
public class YfExceptionServiceImpl implements IYfExceptionService 
{
    @Autowired
    private YfExceptionMapper yfExceptionMapper;

    /**
     * 查询条形码异常记录
     * 
     * @param id 条形码异常记录ID
     * @return 条形码异常记录
     */
    @Override
    public YfException selectYfExceptionById(Long id)
    {
        return yfExceptionMapper.selectYfExceptionById(id);
    }

    /**
     * 查询条形码异常记录列表
     * 
     * @param yfException 条形码异常记录
     * @return 条形码异常记录
     */
    @Override
    public List<YfException> selectYfExceptionList(YfException yfException)
    {
        return yfExceptionMapper.selectYfExceptionList(yfException);
    }

    /**
     * 新增条形码异常记录
     * 
     * @param yfException 条形码异常记录
     * @return 结果
     */
    @Override
    public int insertYfException(YfException yfException)
    {
        return yfExceptionMapper.insertYfException(yfException);
    }

    /**
     * 修改条形码异常记录
     * 
     * @param yfException 条形码异常记录
     * @return 结果
     */
    @Override
    public int updateYfException(YfException yfException)
    {
        return yfExceptionMapper.updateYfException(yfException);
    }

    /**
     * 删除条形码异常记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteYfExceptionByIds(String ids)
    {
        return yfExceptionMapper.deleteYfExceptionByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除条形码异常记录信息
     * 
     * @param id 条形码异常记录ID
     * @return 结果
     */
    @Override
    public int deleteYfExceptionById(Long id)
    {
        return yfExceptionMapper.deleteYfExceptionById(id);
    }
}
